import search.*;
/**
 * Write a description of class TourEdge here.
 * 
 * @author Thomas Kingston
 * 
 */
public class TourEdge extends GraphEdge<Road,TourState> 
{
     /**
     * Create a new TourEdge to represent a certain road.
     * @param tourNodeA The tour state at the start of this road edge.
     * @param tourNodeB The tour state at the end of this road edge.
     * @param road The road this state represents.
     */
    public TourEdge(TourState tourNodeA, TourState tourNodeB, Road road)
    {
        super(tourNodeA, tourNodeB, road);
    }

    /**
     * @return The cost of traversing this tour edge.
     */
    public double getCost()
    {
        return getLabel().getCost();
    }    
}
